from django.conf import settings

def setting_tags( request ):
    return { 'static_url': settings.STATIC_URL, 'maps_api_key': settings.MAPS_API_KEY }

def request_path(request):
    path = request.path
    stripped_path = path
    stripped_path = stripped_path.lstrip('/')
    stripped_path = stripped_path.rstrip('/')
    directories = stripped_path.split('/')
    return {'path': request.path, 'firstdir': directories[0]}
